package com.ditri.common.controller;

import com.ditri.common.entity.UserGroupRoute;
import com.ditri.common.service.UserGroupRouteService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (UserGroupRoute)表控制层
 *
 * @author makejava
 * @since 2020-07-29 18:18:32
 */
@RestController
@RequestMapping("userGroupRoute")
public class UserGroupRouteController {
    /**
     * 服务对象
     */
    @Resource
    private UserGroupRouteService userGroupRouteService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public UserGroupRoute selectOne(Long id) {
        return this.userGroupRouteService.queryById(id);
    }

}